package com.hyy.blogtest.common.exception;

import lombok.Data;

@Data
public class BlogException extends RuntimeException {


    private String message;
    private int code;
    public BlogException(int code) {
        this.code = code;
    }

    public BlogException(String message) {
        this.message = message;
    }

    public BlogException(String message,int code) {
        this.code = code;
        this.message = message;
    }

    public BlogException() {

    }
}
